package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_opera_mask_upgrade_sing", autoSave = true)
public class LogOperaMaskUpgradeSing {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "变更前等级")
    private int beforeLevel;
    @FieldTypeAnnotation(desc = "变更后等级")
    private int afterLevel;
    @FieldTypeAnnotation(desc = "升级消耗")
    private String cost;
    @FieldTypeAnnotation(desc = "剧目最高分")
    private String topScore;
    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogOperaMaskUpgradeSing(long userId, int activityId, int beforeLevel, int afterLevel, String cost, String topScore) {
        this.userId = userId;
        this.activityId = activityId;
        this.beforeLevel = beforeLevel;
        this.afterLevel = afterLevel;
        this.cost = cost;
        this.topScore = topScore;
        this.time = new Date();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getBeforeLevel() {
        return beforeLevel;
    }

    public void setBeforeLevel(int beforeLevel) {
        this.beforeLevel = beforeLevel;
    }

    public int getAfterLevel() {
        return afterLevel;
    }

    public void setAfterLevel(int afterLevel) {
        this.afterLevel = afterLevel;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public String getTopScore() {
        return topScore;
    }

    public void setTopScore(String topScore) {
        this.topScore = topScore;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
